/*--------------------------------------------------------------
# Prenotazione ritiri
# Calendario, scelta dell'orario e modulo di conferma.
--------------------------------------------------------------*/

.prenota {
  max-width: 940px;
  margin: 0 auto;
}

.prenota-griglia {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.prenota-calendario {
  flex: 1 1 340px;
  min-width: 300px;
}

.prenota-orari {
  flex: 1 1 300px;
  min-width: 260px;
}

/* Logo in cima al calendario: 64 + 14 + 12 + 1 = 91px, vedi sotto */
.prenota-logo {
  text-align: center;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid #eee5e0;
}

.prenota-logo img {
  display: inline-block;
  height: 64px;
  width: auto;
}

/* Colonne affiancate: gli orari partono all'altezza del mese, non del
   logo. Sotto i 768px le colonne vanno una sotto l'altra e non serve. */
@media (min-width: 768px) {
  .prenota-orari {
    padding-top: 91px;
  }
}

/* Riga di aiuto sotto un campo del modulo */
.prenota-aiuto {
  font-size: 13px;
  color: #7a716b;
  margin: -6px 0 12px;
}

/* Intestazione del mese */
.prenota-mese {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.prenota-mese strong {
  font-size: 18px;
  color: #4e4039;
  text-transform: capitalize;
}

.prenota-mese button {
  border: 1px solid #e6ded9;
  background: #fff;
  color: #4e4039;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s;
}

.prenota-mese button:hover:not(:disabled) {
  background: #fef8f5;
  border-color: #f57e22;
}

.prenota-mese button:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Griglia dei giorni */
.prenota-settimana,
.prenota-giorni {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.prenota-settimana span {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #a99f99;
  text-transform: uppercase;
  padding-bottom: 6px;
}

.prenota-giorno {
  aspect-ratio: 1 / 1;
  border: 1px solid #eee5e0;
  background: #fff;
  border-radius: 6px;
  font-size: 15px;
  color: #4e4039;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: 0.15s;
}

.prenota-giorno:hover:not(:disabled) {
  border-color: #f57e22;
  background: #fef8f5;
}

.prenota-giorno:disabled {
  color: #cfc7c2;
  background: #fbfaf9;
  border-color: #f3efec;
  cursor: default;
}

.prenota-giorno.vuoto {
  border: none;
  background: none;
  cursor: default;
}

.prenota-giorno.scelto {
  background: #f57e22;
  border-color: #f57e22;
  color: #fff;
  font-weight: 700;
}

.prenota-giorno .punto {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f57e22;
  margin-top: 3px;
}

.prenota-giorno.scelto .punto {
  background: #fff;
}

.prenota-giorno:disabled .punto {
  visibility: hidden;
}

/* Elenco degli orari */
/* Solo l'iniziale va maiuscola: in italiano i mesi restano minuscoli,
   e "capitalize" scriverebbe "Lunedi 31 Agosto". */
.prenota-orari h4 {
  font-size: 17px;
  color: #4e4039;
  margin-bottom: 12px;
}

.prenota-orari h4::first-letter {
  text-transform: uppercase;
}

.prenota-slot {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.prenota-slot button {
  border: 1px solid #f0d9c8;
  background: #fff;
  color: #4e4039;
  padding: 10px 4px;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.15s;
}

.prenota-slot button:hover {
  border-color: #f57e22;
  background: #fef8f5;
}

.prenota-slot button.scelto {
  background: #f57e22;
  border-color: #f57e22;
  color: #fff;
  font-weight: 700;
}

/* Modulo e messaggi */
.prenota-form {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #eee5e0;
}

.prenota-form .riepilogo {
  background: #fef8f5;
  border-left: 3px solid #f57e22;
  padding: 12px 16px;
  margin-bottom: 20px;
  color: #4e4039;
}

.prenota-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #4e4039;
  margin-bottom: 5px;
}

.prenota-form input[type="text"],
.prenota-form input[type="email"],
.prenota-form input[type="tel"],
.prenota-form textarea {
  width: 100%;
  border: 1px solid #e0d7d2;
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 15px;
  margin-bottom: 14px;
}

.prenota-form input:focus,
.prenota-form textarea:focus {
  outline: none;
  border-color: #f57e22;
}

.prenota-form .esca {
  position: absolute;
  left: -9999px;
}

.prenota-form .consenso {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  margin-bottom: 18px;
  font-weight: 400;
}

.prenota-bottone {
  background: #f57e22;
  border: 0;
  color: #fff;
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
}

.prenota-bottone:hover:not(:disabled) {
  background: #ef7f4d;
}

.prenota-bottone:disabled {
  opacity: 0.6;
  cursor: default;
}

.prenota-bottone.annulla {
  background: #fff;
  color: #c0392b;
  border: 1px solid #e3b8b2;
}

.prenota-bottone.annulla:hover:not(:disabled) {
  background: #fdf3f2;
}

/* Il "Sì, annulla" della conferma: l'azione che non si puo' disfare */
.prenota-bottone.annulla-pieno {
  background: #b03a2e;
}

.prenota-bottone.annulla-pieno:hover:not(:disabled) {
  background: #962f25;
}

/* Sposta e annulla alla pari, affiancati; uno sotto l'altro sul telefono */
.prenota-azioni.due .prenota-bottone {
  flex: 1 1 220px;
}

.prenota-conferma {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 6px;
  background: #fdf6f5;
  border: 1px solid #f0c4bc;
  color: #4e4039;
}

.prenota-conferma p {
  margin: 0;
}

.prenota-conferma .prenota-azioni {
  margin-top: 14px;
}

/* La barra del menu resta fissa in alto: scorrendo fin qui non deve
   coprire il titolo "Scegli il nuovo giorno e orario". */
#zona-sposta {
  scroll-margin-top: 100px;
}

.prenota-riferimento {
  text-align: center;
  font-size: 13px;
  color: #8a807a;
  margin: 18px 0 0;
}

.prenota-messaggio {
  padding: 12px 16px;
  border-radius: 5px;
  margin: 16px 0;
  font-size: 15px;
}

.prenota-messaggio.errore {
  background: #fdf0ee;
  border: 1px solid #f0c4bc;
  color: #b03a2e;
}

.prenota-messaggio.attesa {
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  color: #666;
}

.prenota-vuoto {
  color: #8a807a;
  font-size: 15px;
}

/* Esito */
.prenota-esito {
  text-align: center;
  padding: 30px 20px;
  background: #fef8f5;
  border-radius: 8px;
}

.prenota-esito i {
  font-size: 46px;
  color: #f57e22;
}

.prenota-esito h3 {
  margin: 14px 0 10px;
  color: #4e4039;
}

/* Il testo arriva gia' con l'iniziale maiuscola dal server. */
.prenota-esito .quando {
  font-size: 20px;
  font-weight: 700;
  color: #4e4039;
}

/* Riquadro dell'appuntamento nella pagina di gestione */
.prenota-scheda {
  background: #fff;
  border: 1px solid #eee5e0;
  border-radius: 8px;
  padding: 22px 24px;
  margin-bottom: 26px;
}

.prenota-scheda dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px 16px;
  margin: 0;
}

.prenota-scheda dt {
  font-weight: 700;
  color: #8a807a;
}

.prenota-scheda dd {
  margin: 0;
  color: #4e4039;
}

.prenota-azioni {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

@media (max-width: 575px) {
  .prenota-scheda dl {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }

  .prenota-scheda dd {
    margin-bottom: 10px;
  }
}

/*--------------------------------------------------------------
# Fuori stagione
# Al posto del calendario, quando le prenotazioni sono spente.
--------------------------------------------------------------*/

.prenota-chiuse {
  text-align: center;
  padding: 28px 24px;
  margin: 10px auto 30px;
  border: 1px solid #e6ded9;
  border-radius: 8px;
  background: #fef8f5;
  color: #4e4039;
}

.prenota-chiuse h3 {
  font-size: 22px;
  margin-bottom: 14px;
}

.prenota-chiuse p {
  margin-bottom: 8px;
}
